/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.fl.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * cms查要看历史信息Entity
 * @author Anthony
 * @version 2019-01-23
 */
@Table(name="fl_content_history", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="content_id", attrName="contentId", label="content_id"),
		@Column(name="viewer", attrName="viewer", label="viewer"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class ContentHistory extends DataEntity<ContentHistory> {
	
	private static final long serialVersionUID = 1L;
	private String contentId;		// content_id
	private String viewer;		// viewer
	
	public ContentHistory() {
		this(null);
	}

	public ContentHistory(String id){
		super(id);
	}
	
	@Length(min=0, max=64, message="content_id长度不能超过 64 个字符")
	public String getContentId() {
		return contentId;
	}

	public void setContentId(String contentId) {
		this.contentId = contentId;
	}
	
	@Length(min=0, max=64, message="viewer长度不能超过 64 个字符")
	public String getViewer() {
		return viewer;
	}

	public void setViewer(String viewer) {
		this.viewer = viewer;
	}
	
}